package com.link.base.base.receivable.service;

import com.link.base.base.receivable.dao.mybatis.mapper.PayClctMapper;
import com.link.base.base.receivable.model.PayClct;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import javax.annotation.Resource;

import com.link.core.basic.service.ServiceException;
import org.springframework.stereotype.Service;

/**
 * @author unknown
 * @date unknown
 * @comments 回款
 */
@Service
public class PayClctServiceImpl extends BasicServiceImpl<PayClct> implements PayClctService {

    @Resource
    private PayClctMapper payClctMapper;

    @Override
    public BasicMapper<PayClct> getBasicMapper() {
        return payClctMapper;
    }

    @Override
    public void attachmentUpdate(PayClct entity) throws Exception {
        if (null == entity.getId()) {
            throw new ServiceException("PUBLIC-007");
        }
        payClctMapper.attachmentUpdate(entity);
    }
}
